function _getGlobal(): any {
    return typeof window !== 'undefined' ? window : globalThis;
}

const NS = "__many__";

function init() {
    const global = _getGlobal();
    global[NS] = global[NS] || {};

}
init();

export default {
    set(Many: any) {
        const global = _getGlobal();
        global[NS] = Many;
        return Many;
    },
}